3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate ellipsoids. See "Ellipsoids" for the definition of an ellipsoid.
You can use the Q3Ellipsoid_New function to create a new ellipsoid.
TQ3GeometryObject Q3Ellipsoid_New (
const TQ3EllipsoidData *ellipsoidData);
You can use the Q3Ellipsoid_Submit function to submit an immediate ellipsoid for drawing, picking, bounding, or writing.
TQ3Status Q3Ellipsoid_Submit (
const TQ3EllipsoidData *ellipsoidData,
TQ3ViewObject view);
The Q3Ellipsoid_Submit function submits for drawing, picking, bounding, or writing the immediate ellipsoid whose shape and attribute set are specified by the ellipsoidData parameter. The ellipsoid is drawn, picked, bounded, or written according to the view characteristics specified in the view parameter.
You can use the Q3Ellipsoid_GetData function to get the data that defines an ellipsoid and its attributes.
TQ3Status Q3Ellipsoid_GetData (
TQ3GeometryObject ellipsoid,
TQ3EllipsoidData *ellipsoidData);
The Q3Ellipsoid_GetData function returns, through the ellipsoidData parameter, information about the ellipsoid specified by the ellipsoid parameter. QuickDraw 3D allocates memory for the TQ3EllipsoidData structure internally; you must call Q3Ellipsoid_EmptyData to dispose of that memory.
You can use the Q3Ellipsoid_SetData function to set the data that defines an ellipsoid and its attributes.
TQ3Status Q3Ellipsoid_SetData (
TQ3GeometryObject ellipsoid,
const TQ3EllipsoidData *ellipsoidData);
You can use the Q3Ellipsoid_EmptyData function to release the memory occupied by the data structure returned by a previous call to Q3Ellipsoid_GetData .
TQ3Status Q3Ellipsoid_EmptyData (TQ3EllipsoidData *ellipsoidData);
You can use the Q3Ellipsoid_GetOrigin function to get the origin of an ellipsoid.
TQ3Status Q3Ellipsoid_GetOrigin (
TQ3GeometryObject ellipsoid,
TQ3Point3D *origin);
You can use the Q3Ellipsoid_SetOrigin function to set the origin of an ellipsoid.
TQ3Status Q3Ellipsoid_SetOrigin (
TQ3GeometryObject ellipsoid,
const TQ3Point3D *origin);
You can use the Q3Ellipsoid_GetOrientation function to get the orientation of an ellipsoid.
TQ3Status Q3Ellipsoid_GetOrientation (
TQ3GeometryObject ellipsoid,
TQ3Vector3D *orientation);
You can use the Q3Ellipsoid_SetOrientation function to set the orientation of an ellipsoid.
TQ3Status Q3Ellipsoid_SetOrientation (
TQ3GeometryObject ellipsoid,
const TQ3Vector3D *orientation);
You can use the Q3Ellipsoid_GetMajorRadius function to get the major radius of an ellipsoid.
TQ3Status Q3Ellipsoid_GetMajorRadius (
TQ3GeometryObject ellipsoid,
TQ3Vector3D *majorRadius);
You can use the Q3Ellipsoid_SetMajorRadius function to set the major radius of an ellipsoid.
TQ3Status Q3Ellipsoid_SetMajorRadius (
TQ3GeometryObject ellipsoid,
const TQ3Vector3D *majorRadius);
You can use the Q3Ellipsoid_GetMinorRadius function to get the minor radius of an ellipsoid.
TQ3Status Q3Ellipsoid_GetMinorRadius (
TQ3GeometryObject ellipsoid,
TQ3Vector3D *minorRadius);
You can use the Q3Ellipsoid_SetMinorRadius function to set the minor radius of an ellipsoid.
TQ3Status Q3Ellipsoid_SetMinorRadius (
TQ3GeometryObject ellipsoid,
const TQ3Vector3D *minorRadius);
Previous | QD3D Book | Overview | Chapter Contents | Next |